package ooday01;

public class Student {
    String name;
    int age;
    static String className;
    String stuId;

    static {
        className="jsd2302";
    }

    Student(String name1,int age1,String stuId1){
        name=name1;
        age=age1;
        stuId=stuId1;
    }

    Student(String name,int age){
        this.name=name;
        this.age=age;
    }

    void study(){
        System.out.println(name+"在学习");
    }
    void sayHi(){
        System.out.println("大家好，我叫"+name+"今年"+age+"岁了，在"
                +className+"班，学号为"+stuId);
    }
    void playWith(){
        System.out.println(name+"今年"+age);
    }
}
